package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 监控数据对象 PLC_ITEM
 * 
 * @author ZYT
 * @date 2021-06-11
 */
public class PlcItem extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 数据名称 */
    @Excel(name = "数据名称")
    private String itemNo;

    /** UNIT_NO */
    @Excel(name = "UNIT_NO")
    private String unitNo;

    /** ITEM_NAME */
    @Excel(name = "ITEM_NAME")
    private String itemName;

    /** ITEM_GRP */
    @Excel(name = "ITEM_GRP")
    private String itemGrp;

    /** ITEM_CODE */
    @Excel(name = "ITEM_CODE")
    private String itemCode;

    /** ITEM_TAG */
    @Excel(name = "ITEM_TAG")
    private String itemTag;

    /** 当前值 */
    @Excel(name = "当前值")
    private String itemValue;

    /** 历史值 */
    @Excel(name = "历史值")
    private String itemOldvalue;

    /** DISPLAY_TYPE */
    @Excel(name = "DISPLAY_TYPE")
    private String displayType;

    /** DATA_TYPE */
    @Excel(name = "DATA_TYPE")
    private String dataType;

    /** DATA_LEN */
    @Excel(name = "DATA_LEN")
    private Double dataLen;

    /** BIT_FROM */
    @Excel(name = "BIT_FROM")
    private Double bitFrom;

    /** BIT_LEN */
    @Excel(name = "BIT_LEN")
    private Double bitLen;

    /** ITEM_ADDR */
    @Excel(name = "ITEM_ADDR")
    private Double itemAddr;

    /** POINT_TYPE */
    @Excel(name = "POINT_TYPE")
    private String pointType;

    /** EVENT_NO */
    @Excel(name = "EVENT_NO")
    private String eventNo;

    /** STN_NO */
    @Excel(name = "STN_NO")
    private String stnNo;

    /** STN_CODE */
    @Excel(name = "STN_CODE")
    private String stnCode;

    /** IS_WRITE_DB */
    @Excel(name = "IS_WRITE_DB")
    private String isWriteDb;

    /** COMMENTS */
    @Excel(name = "COMMENTS")
    private String comments;

    /** BLOCK */
    @Excel(name = "BLOCK")
    private Double block;

    /** ARRAY_CNT */
    @Excel(name = "ARRAY_CNT")
    private Double arrayCnt;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setItemNo(String itemNo) 
    {
        this.itemNo = itemNo;
    }

    public String getItemNo() 
    {
        return itemNo;
    }
    public void setUnitNo(String unitNo) 
    {
        this.unitNo = unitNo;
    }

    public String getUnitNo() 
    {
        return unitNo;
    }
    public void setItemName(String itemName) 
    {
        this.itemName = itemName;
    }

    public String getItemName() 
    {
        return itemName;
    }
    public void setItemGrp(String itemGrp) 
    {
        this.itemGrp = itemGrp;
    }

    public String getItemGrp() 
    {
        return itemGrp;
    }
    public void setItemCode(String itemCode) 
    {
        this.itemCode = itemCode;
    }

    public String getItemCode() 
    {
        return itemCode;
    }
    public void setItemTag(String itemTag) 
    {
        this.itemTag = itemTag;
    }

    public String getItemTag() 
    {
        return itemTag;
    }
    public void setItemValue(String itemValue) 
    {
        this.itemValue = itemValue;
    }

    public String getItemValue() 
    {
        return itemValue;
    }
    public void setItemOldvalue(String itemOldvalue) 
    {
        this.itemOldvalue = itemOldvalue;
    }

    public String getItemOldvalue() 
    {
        return itemOldvalue;
    }
    public void setDisplayType(String displayType) 
    {
        this.displayType = displayType;
    }

    public String getDisplayType() 
    {
        return displayType;
    }
    public void setDataType(String dataType) 
    {
        this.dataType = dataType;
    }

    public String getDataType() 
    {
        return dataType;
    }
    public void setDataLen(Double dataLen) 
    {
        this.dataLen = dataLen;
    }

    public Double getDataLen() 
    {
        return dataLen;
    }
    public void setBitFrom(Double bitFrom) 
    {
        this.bitFrom = bitFrom;
    }

    public Double getBitFrom() 
    {
        return bitFrom;
    }
    public void setBitLen(Double bitLen) 
    {
        this.bitLen = bitLen;
    }

    public Double getBitLen() 
    {
        return bitLen;
    }
    public void setItemAddr(Double itemAddr) 
    {
        this.itemAddr = itemAddr;
    }

    public Double getItemAddr() 
    {
        return itemAddr;
    }
    public void setPointType(String pointType) 
    {
        this.pointType = pointType;
    }

    public String getPointType() 
    {
        return pointType;
    }
    public void setEventNo(String eventNo) 
    {
        this.eventNo = eventNo;
    }

    public String getEventNo() 
    {
        return eventNo;
    }
    public void setStnNo(String stnNo) 
    {
        this.stnNo = stnNo;
    }

    public String getStnNo() 
    {
        return stnNo;
    }
    public void setStnCode(String stnCode) 
    {
        this.stnCode = stnCode;
    }

    public String getStnCode() 
    {
        return stnCode;
    }
    public void setIsWriteDb(String isWriteDb) 
    {
        this.isWriteDb = isWriteDb;
    }

    public String getIsWriteDb() 
    {
        return isWriteDb;
    }
    public void setComments(String comments) 
    {
        this.comments = comments;
    }

    public String getComments() 
    {
        return comments;
    }
    public void setBlock(Double block) 
    {
        this.block = block;
    }

    public Double getBlock() 
    {
        return block;
    }
    public void setArrayCnt(Double arrayCnt) 
    {
        this.arrayCnt = arrayCnt;
    }

    public Double getArrayCnt() 
    {
        return arrayCnt;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("itemNo", getItemNo())
            .append("unitNo", getUnitNo())
            .append("itemName", getItemName())
            .append("itemGrp", getItemGrp())
            .append("itemCode", getItemCode())
            .append("itemTag", getItemTag())
            .append("itemValue", getItemValue())
            .append("itemOldvalue", getItemOldvalue())
            .append("displayType", getDisplayType())
            .append("dataType", getDataType())
            .append("dataLen", getDataLen())
            .append("bitFrom", getBitFrom())
            .append("bitLen", getBitLen())
            .append("itemAddr", getItemAddr())
            .append("pointType", getPointType())
            .append("eventNo", getEventNo())
            .append("stnNo", getStnNo())
            .append("stnCode", getStnCode())
            .append("isWriteDb", getIsWriteDb())
            .append("updateTime", getUpdateTime())
            .append("comments", getComments())
            .append("block", getBlock())
            .append("arrayCnt", getArrayCnt())
            .toString();
    }
}
